package com.silences.pojo;

import java.util.Date;

public class Goods
{
  private int goodsnum;
  private String goodsname;
  private String goodsprice;
  private String goodstype;
  private String avatar;//头像
     private Date createdate;

    public Goods() {
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public int getGoodsnum() {
        return goodsnum;
    }

    public void setGoodsnum(int goodsnum) {
        this.goodsnum = goodsnum;
    }

    public String getGoodsname() {
        return goodsname;
    }

    public void setGoodsname(String goodname) {
        this.goodsname = goodname;
    }

    public String getGoodsprice() {
        return goodsprice;
    }

    public void setGoodsprice(String goodsprice) {
        this.goodsprice = goodsprice;
    }

    public String getGoodstype() {
        return goodstype;
    }

    public void setGoodstype(String goodstype) {
        this.goodstype = goodstype;
    }

    //输出打印信息，toString(),用户对象重写该方法

    @Override
    public String toString() {
        return "Goods{" +
                "goodsnum=" + goodsnum +
                ", goodsname='" + goodsname + '\'' +
                ", goodsprice='" + goodsprice + '\'' +
                ", goodstype='" + goodstype + '\'' +
                '}';
    }
}
